package com.xqboss.apps.service.synthesis;

import com.xqboss.apps.domain.synthesis.SynthesisJoinLog;
import com.xqboss.apps.mapper.synthesis.SynthesisJoinLogMapper;
import com.xqboss.apps.service.synthesis.SynthesisJoinLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import com.xqboss.chain.domain.chain.dto.BaseRequest;
import java.util.List;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;

/**
 * <p>
 * 合成活动参与记录 服务实现类
 * </p>
 *
 * @author 木鱼
 * @since 2023-11-17
 */
@Service
@Slf4j
@RequiredArgsConstructor
public class SynthesisJoinLogService extends ServiceImpl<SynthesisJoinLogMapper, SynthesisJoinLog> {
    public List<SynthesisJoinLog> selectBasicList(BaseRequest request) {
        return baseMapper.selectList(Wrappers.<SynthesisJoinLog>lambdaQuery());
    }

    public SynthesisJoinLog selectByIdBasic(Long id) {
        return baseMapper.selectById(id);
    }

    public boolean saveBasic(SynthesisJoinLog record) {
        return baseMapper.insert(record) > 0;
    }

    public boolean updateBasic(SynthesisJoinLog record) {
        return baseMapper.updateById(record) > 0;
    }

    public boolean removeBasic(Long id) {
        return baseMapper.deleteById(id) > 0;
    }

}